<?php 

abstract class sElement  implements MsimpleElement{
	private $name = null;
	private $label = null;
	private $value= null;
	private $more = array();
	private $inlineStyle = null;

	public function setName($name) {
		$name = trim($name);
		if(empty($name)) {
			throw new MformException('Name can not be empty');
			return false;
		}
		$this->name = $name;
		return true;
	}

	public function getName() {
		return $this->name;
	}

	public function setlabel($label) {
		$label = trim($label);

		$this->label = $label;
		return true;
	}

	public function getlabel() {
		return $this->label;
	}

	public function setValue($value) {
		$this->value = $value;
	}

	public function getValue() {
		if(isset($_REQUEST[$this->getName()])) {
			$this->value = $_REQUEST[$this->getName()];
		}
		return $this->value;
	}

	public function setInlineStyle($style) {
		$this->inlineStyle = trim($style);
	}

	public function getInlineStyle() {
		return $this->inlineStyle;
	}
}
?>